package valeria;

import java.util.Scanner;

public class J09Circle {
	public static void main(String[]args){
		double radius[]=new double[2];
		double area[]=new double[2]; 
		double perim[]=new double[2]; 
		final double PI = 3.14; 
	
		
		inputCircle(radius, area, perim);
		getArea(area, PI, radius);
		getPerim(perim, PI, radius);
		
		System.out.println(radius[1]);
		System.out.println(area[1]);
		System.out.println(perim[1]);
	 	
		}
public static void inputCircle(double radius[],double area[],double perim[]){
	Scanner sc= new Scanner(System.in);
	System.out.println("반지름을 입력하세요");
	radius[1] = sc.nextDouble();  
					
	sc.close();
						}
	
public static void getArea(double area[],final double PI,double radius[]){
	area[1] = PI * radius[1] * radius[1];
							}

public static void getPerim(double perim[],final double PI,double radius[]){
	perim[1] = 2 * PI * radius[1];
							}




}
